PROG     = EditorNivel

#SRCS     = $(wildcard *.cpp)
SRCS     = main.cpp EditorNivel.cpp CeldaEditor.cpp TableroEditor.cpp  DatoCelda.cpp
FLAGS=-g -I../includes
LIBS=-ljson_linux-gcc-4.6_libmt
OBJS     = $(SRCS:.cpp=.o)
CXXFLAGS = -O2 -Wall -Werror -ansi `pkg-config gtkmm-3.0 --cflags` -std=c++0x
LDLIBS   = -lpthread `pkg-config gtkmm-3.0 --libs`
INCLUDE  =
DEPFILE  = deps.mak

.PHONY: clean

$(PROG): $(OBJS)
	$(CXX) $^ $(LDLIBS) $(FLAGS) -o $@ $(LIBS)

# How to make the object files:
.cpp.o:
	$(CXX) $(CXXFLAGS) -c $<

deps:
	$(CXX) -MM $(CXXFLAGS) $(SRCS) > $(DEPFILE)

# Cleaning target (only works with fileutils):
clean:
	$(RM) $(OBJS) $(PROG)

-include $(DEPFILE) 
